﻿// code05040400.cpp : 循环语句
// do while循环

#include <iostream>
#include <string>
using namespace std;

int main()
{
	string rsp;
	do
	{
		cout << "输入两个数：" << endl;
		int val1 = 0, val2 = 0;
		cin >> val1 >> val2;
		cout << "val1+val2=" << val1 + val2 << endl;
		cout << "是否继续？Y/N:";
		cin >> rsp;
	}
	while (!rsp.empty()&&rsp[0]!='n');

	return 0;
}

